import {UserLayout} from '../components/layouts'

var loginRouterPathStr = '/user/login';

/**
 * 登录routerPath
 */
export var loginRouterPath = loginRouterPathStr;

/**
 * 首页路由
 */
export var indexRouterPath = '/index';

/**
 * 白名单路由
 */
export var whiteRouterPath = ['/user/init'];

/**
 * 基础路由
 */
export var constantRouterMap = [
    
    {
      path: '/user',
      component: UserLayout,
      redirect: loginRouterPathStr,
      hidden: true,
      children: [
        {
          path: 'login',
          name: 'login',
          component: () => import('../views/user/Login')
        },
        {
          path:'init',
          component: () => import( '../views/user/Init')
        }
      ]
    },

    {
      path: '/404',
      component: () => import('../views/exception/404')
    },

  ]